Day 1: Getting data into shape

Tidyverse world

Ben Fanson https://bfanson.github.io/2024DADAworkshop/ (Arthur Rylah Institute)https://www.ari.vic.gov.au/
2024-09-04

Day’s objectives

  1. Understand workflow, why it is important, and how to do it using Rstudio/R
  2. Have an understanding of the tidyverse framework and its key packages
  3. Work through an example

Key packages

Example of some workflows

mine

Paul’s

Commonalities

Advantages of workflow

asfd

adsf

Dataset for workshop

link to .

Rstudio

You can find a variety of cheatsheets at https://posit.co/resources/cheatsheets/

Basics

Tips and tricks

Programming good technique

Tidyverse framework

Historical context

Importing

Excel files

CSV/Table

Joins

Show code
TRUE
[1] TRUE

knitr::include_graphics(“dplyr.pdf”)







Note: joins = merges (synonyms)

Tips and tricks

Restructuring

Show code
TRUE
[1] TRUE

knitr::include_graphics(“tidyr.pdf”)







String manipulation

Show code
TRUE
[1] TRUE

knitr::include_graphics(“stringr.pdf”)







Date/time

Show code
TRUE
[1] TRUE

knitr::include_graphics(“lubridate.pdf”)